// Kony

#pragma once

#include "CoreMinimal.h"
#include "GameFramework/HUD.h"
#include "LoadScreenHUD.generated.h"

class UMVVM_LoadScreen;
class ULoadScreenWidget;
/**
 * 游戏加载场景 HUD类
 */
UCLASS()
class GASC_HUANLING_API ALoadScreenHUD : public AHUD
{
	GENERATED_BODY()
public:
	//这个是用于在蓝图中设置 角色加载场景组件
	UPROPERTY(EditDefaultsOnly)
	TSubclassOf<UUserWidget> LoadScreenWidgetClass;

	//角色加载场景组件，这个是存储上面蓝图中设置的组件
	UPROPERTY(BlueprintReadOnly)
	TObjectPtr<ULoadScreenWidget> LoadScreenWidget;

	//MVVM版本的用户组件模板
	UPROPERTY(EditDefaultsOnly)
	TSubclassOf<UMVVM_LoadScreen> LoadScreenWidgetModelClass;
	//MVVM版本角色加载场景组件，这个是存储上面蓝图中设置的组件
	UPROPERTY(BlueprintReadOnly)
	TObjectPtr<UMVVM_LoadScreen> LoadScreenWidgetModel;
protected:
	virtual void BeginPlay() override;
	
};
